package java_DesignPattern.SixPrinciple.DependencyInversionPrinciple.My2;

public class TestMy2 {
    public static void main(String[] args) {
        //创建电脑对象
        Computer computer = new Computer();

        computer.setCPU(new IntelCPU());
        computer.setMemory(new KingstonMemory());
        computer.setHardDisk(new XJHardDisk());

        //运行电脑
        computer.run();
    }
}
